using System;

namespace SharpChess
{
	/// <summary>
	/// Summary description for KillerMoves.
	/// </summary>
	public class KillerMoves
	{
		private static Move[] m_arrmoveA = new Move[64];
		private static Move[] m_arrmoveB = new Move[64];

		static KillerMoves()
		{
			Clear();
		}

		public static void Clear()
		{
			for (int intIndex=0; intIndex<64; intIndex++)
			{
				m_arrmoveA[intIndex] = null;
				m_arrmoveB[intIndex] = null;
			}
		}

		public static void AssignA(int depth, Move move)
		{
			m_arrmoveA[depth+32] = move;
		}

		public static Move RetrieveA(int depth)
		{
			return m_arrmoveA[depth+32];
		}

		public static void AssignB(int depth, Move move)
		{
			m_arrmoveB[depth+32] = move;
		}

		public static Move RetrieveB(int depth)
		{
			return m_arrmoveB[depth+32];
		}

	}
}
